package homework;

class ThreadDemo extends Thread {
	@Override
	public void run() {
			System.out.println(Thread.currentThread().getName());
	}
}

public class Test1 {
	public static void main(String[] args) {
		Thread one=new Thread(new ThreadDemo(),"线程A");
		Thread two=new Thread(new ThreadDemo(),"线程B");
		one.start();
		two.start();
	}

	
}
